package com.ling.pl.autoproject.definition.component.form.model;

import com.ling.pl.core.commons.annotation.Dict;
import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;

public class FormContainerBase {
    @Column(name = "FORM_ID", length = 36)
    @ModelProperty(comment = "form id")
    String formId;

    @Column(name = "SORT_ORDER")
    @ModelProperty(comment = "显示顺序")
    Integer sortOrder;

    @Column(name = "NAME", length = 150)
    @ModelProperty(comment = "名称")
    String name;

    @Column(name = "TITLE", length = 150)
    @ModelProperty(comment = "标题语言资源")
    String title;

    @Column(name = "TITLE_I18N", length = 150)
    @ModelProperty(comment = "标题语言资源")
    String titleI18n;

    @Column(name = "LAYOUT_TYPE", length = 150)
    @ModelProperty(comment = "布局模式")
    @Dict(code = "builder.component.layoutType", des = "z自动表格,表格,?格布局")
    String layoutType;

    @Column(name = "COLUMN_TYPE", length = 150)
    @ModelProperty(comment = "列模式")
    String columnType;

    @Column(name = "ICON", length = 150)
    @ModelProperty(comment = "图标")
    String icon;

    @Column(name = "TITLE_PROPERTY", length = 150)
    @ModelProperty(comment = "标题项值")
    String titleProperty;

    @Column(name = "PLUGIN", length = 250)
    @ModelProperty(comment = "自定义绘制插件")
    String plugin;

    @Column(name = "PADDING", length = 150)
    @ModelProperty(comment = "外框间隔")
    String padding;

    @Column(name = "MARGIN", length = 150)
    @ModelProperty(comment = "内框间隔")
    String margin;

    @Column(name = "CONTAINER_STYLE", length = 150)
    @ModelProperty(comment = "容器样式")
    String containerStyle;

    @Column(name = "TITLE_STYLE", length = 150)
    @ModelProperty(comment = "标题样式")
    String titleStyle;

    @Column(name = "XS_SPAM")
    @ModelProperty(comment = "xs栅格占位格数")
    Integer xsSpan;

    @Column(name = "SM_SPAM")
    @ModelProperty(comment = "SM栅格占位格数")
    Integer smSpan;

    @Column(name = "MD_SPAM")
    @ModelProperty(comment = "MD栅格占位格数")
    Integer mdSpan;

    @Column(name = "LG_SPAM")
    @ModelProperty(comment = "LG栅格占位格数")
    Integer lgSpan;
}
